
<!DOCTYPE HTML>
<html lang="zh-hans" >
    <head>
        <meta charset="UTF-8">
        <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
        <title>协同开发 · 雪之梦</title>
        <meta http-equiv="X-UA-Compatible" content="IE=edge" />
        <meta name="description" content="">
        <meta name="generator" content="GitBook 3.2.3">
        <meta name="author" content="xinwuyun">
        
        
    
    
    <link rel="stylesheet" href="../../gitbook/style.css">

    
            
                
                <link rel="stylesheet" href="../../gitbook/gitbook-plugin-search-plus/search.css">
                
            
                
                <link rel="stylesheet" href="../../gitbook/gitbook-plugin-splitter/splitter.css">
                
            
                
                <link rel="stylesheet" href="../../gitbook/gitbook-plugin-expandable-chapters-small/expandable-chapters-small.css">
                
            
                
                <link rel="stylesheet" href="../../gitbook/gitbook-plugin-anchor-navigation-ex/style/plugin.css">
                
            
                
                <link rel="stylesheet" href="../../gitbook/gitbook-plugin-code/plugin.css">
                
            
                
                <link rel="stylesheet" href="../../gitbook/gitbook-plugin-advanced-emoji/emoji-website.css">
                
            
                
                <link rel="stylesheet" href="https://unpkg.com/gitalk/dist/gitalk.css">
                
            
                
                <link rel="stylesheet" href="../../gitbook/gitbook-plugin-donate/plugin.css">
                
            
                
                <link rel="stylesheet" href="../../gitbook/gitbook-plugin-icp/footer.css">
                
            
                
                <link rel="stylesheet" href="../../gitbook/gitbook-plugin-mermaid-gb3/mermaid/mermaid.css">
                
            
                
                <link rel="stylesheet" href="../../gitbook/gitbook-plugin-highlight/website.css">
                
            
                
                <link rel="stylesheet" href="../../gitbook/gitbook-plugin-fontsettings/website.css">
                
            
        

    

    
        
    
        
    
        
    
        
    
        
    
        
    


    

        
    
    
    
    
    
    
    <meta name="HandheldFriendly" content="true"/>
    <meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="apple-mobile-web-app-status-bar-style" content="black">
    <link rel="apple-touch-icon-precomposed" sizes="152x152" href="../../gitbook/images/apple-touch-icon-precomposed-152.png">
    <link rel="shortcut icon" href="../../gitbook/images/favicon.ico" type="image/x-icon">

    
    <link rel="next" href="local-remote-repository.html" />
    
    
    <link rel="prev" href="branch-rebase.html" />
    

    <link href="https://xinwuyun.github.io/rss" title="雪之梦" rel="alternate" type="application/rss+xml" />

    <style>
    @media only screen and (max-width: 640px) {
        .book-header .hidden-mobile {
            display: none;
        }
    }
    </style>
    <script>
        window["gitbook-plugin-github-buttons"] = {"buttons":[{"user":"xinwuyun","repo":"xinwuyun.github.io","type":"star","size":"small"}]};
    </script>

    
        <link rel="shortcut icon" href="/favicon.ico" type="image/x-icon">
    
    
    
    
        <link rel="apple-touch-icon-precomposed" sizes="152x152" href="/apple-touch-icon-precomposed-152.png">
    
    
        
    
    
        
    

    
    <link rel="stylesheet" href="../../gitbook/gitbook-plugin-chart/c3/c3.min.css">
    <script src="../../gitbook/gitbook-plugin-chart/c3/d3.min.js"></script>
    <script src="../../gitbook/gitbook-plugin-chart/c3/c3.min.js"></script>
    

    </head>
    <body>
        
<div class="book">
    <div class="book-summary">
        
            
<div id="book-search-input" role="search">
    <input type="text" placeholder="输入并搜索" />
</div>

            
                <nav role="navigation">
                


<ul class="summary">
    
    
    
        
        <li>
            <a href="https://blog.xinwuyun.cn/" target="_blank" class="custom-link">技术博客</a>
        </li>
    
    

    
    <li class="divider"></li>
    

    
        
        
    
        <li class="chapter " data-level="1.1" data-path="../../">
            
                <a href="../../">
            
                    
                    简介
            
                </a>
            

            
        </li>
    

    
        
        <li class="header">入门教程</li>
        
        
    
        <li class="chapter " data-level="2.1" data-path="../../markdown/">
            
                <a href="../../markdown/">
            
                    
                    markdown 入门教程
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.2" data-path="../">
            
                <a href="../">
            
                    
                    git 入门教程
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="2.2.1" data-path="../base/about.html">
            
                <a href="../base/about.html">
            
                    
                    初识 git
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="2.2.1.1" data-path="../base/install.html">
            
                <a href="../base/install.html">
            
                    
                    安装 git
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.2.1.2" data-path="../base/config.html">
            
                <a href="../base/config.html">
            
                    
                    配置 git
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="2.2.2" data-path="about.html">
            
                <a href="about.html">
            
                    
                    实战 git
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="2.2.2.1" data-path="local-repository.html">
            
                <a href="local-repository.html">
            
                    
                    本地仓库
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.2.2.2" data-path="version-manage.html">
            
                <a href="version-manage.html">
            
                    
                    版本管理
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.2.2.3" data-path="reset.html">
            
                <a href="reset.html">
            
                    
                    回到过去
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.2.2.4" data-path="concept.html">
            
                <a href="concept.html">
            
                    
                    基本概念
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.2.2.5" data-path="version-control.html">
            
                <a href="version-control.html">
            
                    
                    版本控制
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.2.2.6" data-path="checkout-reset.html">
            
                <a href="checkout-reset.html">
            
                    
                    撤销更改
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.2.2.7" data-path="delete.html">
            
                <a href="delete.html">
            
                    
                    删除文件
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.2.2.8" data-path="remote-repository.html">
            
                <a href="remote-repository.html">
            
                    
                    远程仓库
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.2.2.9" data-path="branch-manage.html">
            
                <a href="branch-manage.html">
            
                    
                    分支管理
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="2.2.2.9.1" data-path="branch-overview.html">
            
                <a href="branch-overview.html">
            
                    
                    分支总览
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.2.2.9.2" data-path="branch-merge-with-conflict.html">
            
                <a href="branch-merge-with-conflict.html">
            
                    
                    冲突合并
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.2.2.9.3" data-path="branch-strategy.html">
            
                <a href="branch-strategy.html">
            
                    
                    分支策略
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.2.2.9.4" data-path="branch-emergency-fixbug.html">
            
                <a href="branch-emergency-fixbug.html">
            
                    
                    紧急修复
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.2.2.9.5" data-path="branch-rebase.html">
            
                <a href="branch-rebase.html">
            
                    
                    变基合并
            
                </a>
            

            
        </li>
    
        <li class="chapter active" data-level="2.2.2.9.6" data-path="branch-remote.html">
            
                <a href="branch-remote.html">
            
                    
                    协同开发
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.2.2.9.7" data-path="local-remote-repository.html">
            
                <a href="local-remote-repository.html">
            
                    
                    本地和远程仓库的本质
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="2.2.2.10" data-path="tag.html">
            
                <a href="tag.html">
            
                    
                    里程碑式标签
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="2.2.3" data-path="../custom/about.html">
            
                <a href="../custom/about.html">
            
                    
                    私人定制
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="2.2.3.1" data-path="../custom/ignore.html">
            
                <a href="../custom/ignore.html">
            
                    
                    忽略文件
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.2.3.2" data-path="../custom/sync-remote-repo.html">
            
                <a href="../custom/sync-remote-repo.html">
            
                    
                    同步推送多Git仓库
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="2.2.4" data-path="../server/private.html">
            
                <a href="../server/private.html">
            
                    
                    搭建私服
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.2.5" data-path="../tools/about.html">
            
                <a href="../tools/about.html">
            
                    
                    扩展工具
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="2.2.5.1" data-path="../tools/git-bash-command.html">
            
                <a href="../tools/git-bash-command.html">
            
                    
                    git bash 常见命令
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.2.5.2" data-path="../tools/git-bash-relationship.html">
            
                <a href="../tools/git-bash-relationship.html">
            
                    
                    git bash 朋友圈
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.2.5.3" data-path="../tools/git-bash-tree.html">
            
                <a href="../tools/git-bash-tree.html">
            
                    
                    git bash 扩展tree命令
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.2.5.4" data-path="../tools/git-bash-extend-up.html">
            
                <a href="../tools/git-bash-extend-up.html">
            
                    
                    git bash 扩展命令(上)
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.2.5.5" data-path="../tools/git-bash-extend-middle.html">
            
                <a href="../tools/git-bash-extend-middle.html">
            
                    
                    git bash 扩展命令(中)
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.2.5.6" data-path="../tools/git-bash-extend-down.html">
            
                <a href="../tools/git-bash-extend-down.html">
            
                    
                    git bash 扩展命令(下)
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.2.5.7" data-path="../tools/git-submodule-quickstart.html">
            
                <a href="../tools/git-submodule-quickstart.html">
            
                    
                    git submodule 父子模块
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="2.2.6" data-path="../summary/about.html">
            
                <a href="../summary/about.html">
            
                    
                    沙海拾贝
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="2.2.6.1" data-path="../summary/common.html">
            
                <a href="../summary/common.html">
            
                    
                    知识速查
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.2.6.2" data-path="../summary/cheatsheet-translation.html">
            
                <a href="../summary/cheatsheet-translation.html">
            
                    
                    备忘录[译]
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="2.3" data-path="../../github/">
            
                <a href="../../github/">
            
                    
                    github 入门教程
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="2.3.1" data-path="../../github/speedup.html">
            
                <a href="../../github/speedup.html">
            
                    
                    github 访问速度太慢
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.3.2" data-path="../../github/badge.html">
            
                <a href="../../github/badge.html">
            
                    
                    github 徽章从何而来
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="2.4" data-path="../../myGitbook/">
            
                <a href="../../myGitbook/">
            
                    
                    gitbook 入门教程
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="2.4.1" data-path="../../myGitbook/preparation/prepare.html">
            
                <a href="../../myGitbook/preparation/prepare.html">
            
                    
                    准备阶段
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="2.4.1.1" data-path="../../myGitbook/preparation/front-knowledge.html">
            
                <a href="../../myGitbook/preparation/front-knowledge.html">
            
                    
                    前置知识
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.4.1.2" data-path="../../myGitbook/preparation/environmental-requirements.html">
            
                <a href="../../myGitbook/preparation/environmental-requirements.html">
            
                    
                    环境要求
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="2.4.2" data-path="../../myGitbook/experience/preview.html">
            
                <a href="../../myGitbook/experience/preview.html">
            
                    
                    快速体验
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="2.4.2.1" data-path="../../myGitbook/experience/gitbook-cli.html">
            
                <a href="../../myGitbook/experience/gitbook-cli.html">
            
                    
                    gitbook-cli 命令行操作
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.4.2.2" data-path="../../myGitbook/experience/gitbook-editor.html">
            
                <a href="../../myGitbook/experience/gitbook-editor.html">
            
                    
                    gitbook-editor 编辑器操作
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.4.2.3" data-path="../../myGitbook/experience/gitbook-com.html">
            
                <a href="../../myGitbook/experience/gitbook-com.html">
            
                    
                    gitbook.com 官网操作
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="2.4.3" data-path="../../myGitbook/advance/advance.html">
            
                <a href="../../myGitbook/advance/advance.html">
            
                    
                    高级进阶
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="2.4.3.1" data-path="../../myGitbook/advance/plugin.html">
            
                <a href="../../myGitbook/advance/plugin.html">
            
                    
                    插件介绍
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="2.4.3.1.1" data-path="../../myGitbook/advance/plugin-practical.html">
            
                <a href="../../myGitbook/advance/plugin-practical.html">
            
                    
                    实用插件
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.4.3.1.2" data-path="../../myGitbook/advance/plugin-theme.html">
            
                <a href="../../myGitbook/advance/plugin-theme.html">
            
                    
                    主题插件
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.4.3.1.3" data-path="../../myGitbook/advance/plugin-develop.html">
            
                <a href="../../myGitbook/advance/plugin-develop.html">
            
                    
                    开发插件
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="2.4.3.2" data-path="../../myGitbook/advance/export.html">
            
                <a href="../../myGitbook/advance/export.html">
            
                    
                    导出电子书
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.4.3.3" data-path="../../myGitbook/advance/publish.html">
            
                <a href="../../myGitbook/advance/publish.html">
            
                    
                    发布电子书
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="2.4.4" data-path="../../myGitbook/openwrite/">
            
                <a href="../../myGitbook/openwrite/">
            
                    
                    公众号引流
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.4.5" data-path="../../myGitbook/seo/">
            
                <a href="../../myGitbook/seo/">
            
                    
                    优化搜索
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.4.6" data-path="../../myGitbook/issue/">
            
                <a href="../../myGitbook/issue/">
            
                    
                    常见问题
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="2.4.6.1" data-path="../../myGitbook/issue/rm-output-directory.html">
            
                <a href="../../myGitbook/issue/rm-output-directory.html">
            
                    
                    热加载失败治标之法
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.4.6.2" data-path="../../myGitbook/issue/modify-default-fold.html">
            
                <a href="../../myGitbook/issue/modify-default-fold.html">
            
                    
                    初始化默认折叠效果
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="2.4.7" data-path="../../myGitbook/reference/">
            
                <a href="../../myGitbook/reference/">
            
                    
                    参考更多
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    

    
        
        <li class="header">编程笔记</li>
        
        
    
        <li class="chapter " data-level="3.1" >
            
                <a target="_blank" href="https://xinwuyun.github.io/learn-java/">
            
                    
                    java 学习笔记
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="3.2" >
            
                <a target="_blank" href="https://xinwuyun.github.io/learn-go/">
            
                    
                    go 学习笔记
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="3.3" >
            
                <a target="_blank" href="https://xinwuyun.github.io/learn-php/">
            
                    
                    php 学习笔记
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="3.4" >
            
                <a target="_blank" href="https://xinwuyun.github.io/learn-python/">
            
                    
                    python 学习笔记
            
                </a>
            

            
        </li>
    

    
        
        <li class="header">兴趣开发</li>
        
        
    
        <li class="chapter " data-level="4.1" data-path="../../zero2devops/">
            
                <a href="../../zero2devops/">
            
                    
                    从零开始搭建服务器
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="4.1.1" data-path="../../zero2devops/login-and-logout.html">
            
                <a href="../../zero2devops/login-and-logout.html">
            
                    
                    从登录服务器开始
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="4.1.2" data-path="../../zero2devops/docker.html">
            
                <a href="../../zero2devops/docker.html">
            
                    
                    更加优雅地部署项目
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="4.1.3" data-path="../../zero2devops/docker-get-started.html">
            
                <a href="../../zero2devops/docker-get-started.html">
            
                    
                    跟着官方体验 Docker
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="4.1.4" data-path="../../zero2devops/docker-example.html">
            
                <a href="../../zero2devops/docker-example.html">
            
                    
                    快速尝鲜基于 Docker 部署项目
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="4.1.5" data-path="../../zero2devops/aliyun-oss-static.html">
            
                <a href="../../zero2devops/aliyun-oss-static.html">
            
                    
                    利用阿里云 OSS部署静态网站
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="4.1.6" data-path="../../zero2devops/nginx-https.html">
            
                <a href="../../zero2devops/nginx-https.html">
            
                    
                    免费实现https访问网站
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="4.1.7" data-path="../../zero2devops/webhook.html">
            
                <a href="../../zero2devops/webhook.html">
            
                    
                    webhook
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="4.2" data-path="../../devops/">
            
                <a href="../../devops/">
            
                    
                    运维部署
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="4.2.1" data-path="../../devops/docker-env.html">
            
                <a href="../../devops/docker-env.html">
            
                    
                    docker 环境
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="4.2.2" data-path="../../devops/docker-ops.html">
            
                <a href="../../devops/docker-ops.html">
            
                    
                    docker 操作
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="4.2.3" data-path="../../devops/docker-compose.html">
            
                <a href="../../devops/docker-compose.html">
            
                    
                    docker compose
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="4.2.4" data-path="../../devops/docker-nginx.html">
            
                <a href="../../devops/docker-nginx.html">
            
                    
                    docker + nginx
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="4.2.5" data-path="../../devops/docker-blog.html">
            
                <a href="../../devops/docker-blog.html">
            
                    
                    docker + blog
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="4.2.6" data-path="../../devops/docker-resume.html">
            
                <a href="../../devops/docker-resume.html">
            
                    
                    docker + resume
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="4.2.7" data-path="../../devops/docker-gitbook.html">
            
                <a href="../../devops/docker-gitbook.html">
            
                    
                    docker + gitbook
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="4.2.8" data-path="../../devops/docker-bark.html">
            
                <a href="../../devops/docker-bark.html">
            
                    
                    docker + Bark
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="4.2.9" data-path="../../devops/docker-py12306.html">
            
                <a href="../../devops/docker-py12306.html">
            
                    
                    docker + py12306
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="4.2.10" data-path="../../devops/docker-mojo-Weixin.html">
            
                <a href="../../devops/docker-mojo-Weixin.html">
            
                    
                    docker + mojo-Weixin
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="4.2.11" data-path="../../devops/docker-wechat-work-message-push-go.html">
            
                <a href="../../devops/docker-wechat-work-message-push-go.html">
            
                    
                    docker + wechat-work-message-push-go
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="4.2.12" data-path="../../devops/docker-email.html">
            
                <a href="../../devops/docker-email.html">
            
                    
                    docker + email
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="4.2.13" data-path="../../devops/docker-mysql.html">
            
                <a href="../../devops/docker-mysql.html">
            
                    
                    docker + mysql
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="4.2.14" data-path="../../devops/docker-springboot.html">
            
                <a href="../../devops/docker-springboot.html">
            
                    
                    docker + springboot
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="4.2.15" data-path="../../devops/docker-redis.html">
            
                <a href="../../devops/docker-redis.html">
            
                    
                    docker + redis
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="4.2.16" data-path="../../devops/docker-gogs.html">
            
                <a href="../../devops/docker-gogs.html">
            
                    
                    docker + gogs
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="4.2.17" data-path="../../devops/docker-gitlab.html">
            
                <a href="../../devops/docker-gitlab.html">
            
                    
                    docker + gitlab
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="4.2.18" data-path="../../devops/docker-gitea.html">
            
                <a href="../../devops/docker-gitea.html">
            
                    
                    docker + gitea
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="4.2.19" data-path="../../devops/docker-crawlab.html">
            
                <a href="../../devops/docker-crawlab.html">
            
                    
                    docker + crawlab
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="4.3" data-path="../../tools/">
            
                <a href="../../tools/">
            
                    
                    工具资源
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="4.3.1" data-path="../../tools/mac-install-vmware.html">
            
                <a href="../../tools/mac-install-vmware.html">
            
                    
                    给 mac 装个 vmware 虚拟机
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="4.3.1.1" data-path="../../tools/mac-vmware-install-windows.html">
            
                <a href="../../tools/mac-vmware-install-windows.html">
            
                    
                    给 mac 虚拟机装个 windows
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="4.3.1.2" data-path="../../tools/mac-vmware-install-centos.html">
            
                <a href="../../tools/mac-vmware-install-centos.html">
            
                    
                    给 mac 虚拟机装个 centos
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="4.3.1.3" data-path="../../tools/mac-vmware-install-ubuntu.html">
            
                <a href="../../tools/mac-vmware-install-ubuntu.html">
            
                    
                    给 mac 虚拟机装个 ubuntu
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="4.3.2" data-path="../../tools/windows-install-vmware.html">
            
                <a href="../../tools/windows-install-vmware.html">
            
                    
                    给 windows 装个 vmware 虚拟机
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="4.3.2.1" data-path="../../tools/windows-vmware-install-mac.html">
            
                <a href="../../tools/windows-vmware-install-mac.html">
            
                    
                    给 windows 虚拟机装个 mac
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="4.3.2.2" data-path="../../tools/windows-vmware-install-windows.html">
            
                <a href="../../tools/windows-vmware-install-windows.html">
            
                    
                    给 windows 虚拟机装个 windows
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="4.3.2.3" data-path="../../tools/windows-vmware-install-centos.html">
            
                <a href="../../tools/windows-vmware-install-centos.html">
            
                    
                    给 windows 虚拟机装个 centos
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="4.3.2.4" data-path="../../tools/windows-vmware-install-ubuntu.html">
            
                <a href="../../tools/windows-vmware-install-ubuntu.html">
            
                    
                    给 windows 虚拟机装个 ubuntu
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="4.3.3" data-path="../../tools/wechat-history-article-backup.html">
            
                <a href="../../tools/wechat-history-article-backup.html">
            
                    
                    公众号历史文章备份
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="4.3.3.1" data-path="../../tools/wechat-backup-xuezhimengjishuyizhan.html">
            
                <a href="../../tools/wechat-backup-xuezhimengjishuyizhan.html">
            
                    
                    雪之梦技术驿站
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="4.3.3.2" data-path="../../tools/wechat-backup-sushengbuhuo.html">
            
                <a href="../../tools/wechat-backup-sushengbuhuo.html">
            
                    
                    苏生不惑
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="4.3.3.3" data-path="../../tools/wechat-backup-pythonjishu.html">
            
                <a href="../../tools/wechat-backup-pythonjishu.html">
            
                    
                    Python技术
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="4.3.4" data-path="../../tools/chrome-extend-learn.html">
            
                <a href="../../tools/chrome-extend-learn.html">
            
                    
                    学会开发专属 chrome 插件
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="4.3.5" data-path="../../tools/12306-algorithm-web-js.html">
            
                <a href="../../tools/12306-algorithm-web-js.html">
            
                    
                    攻克 12306 前端加密算法
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="4.4" data-path="../../write/">
            
                <a href="../../write/">
            
                    
                    如何写作
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="4.4.1" data-path="../../write/markdownOrRichText.html">
            
                <a href="../../write/markdownOrRichText.html">
            
                    
                    markdown 和富文本
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="4.4.2" data-path="../../write/markdown2richText.html">
            
                <a href="../../write/markdown2richText.html">
            
                    
                    markdown 转富文本
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="4.4.3" data-path="../../write/static-semi-manual-with-csv.html">
            
                <a href="../../write/static-semi-manual-with-csv.html">
            
                    
                    csv 半手动数据统计
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="4.4.4" data-path="../../write/static-semi-manual-with-js.html">
            
                <a href="../../write/static-semi-manual-with-js.html">
            
                    
                    js 半手动数据统计
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="4.4.5" data-path="../../write/jianshu-optimize-static.html">
            
                <a href="../../write/jianshu-optimize-static.html">
            
                    
                    简述优选文章统计
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="4.4.6" data-path="../../write/mermaid-flow-chart.html">
            
                <a href="../../write/mermaid-flow-chart.html">
            
                    
                    快速上手Mermaid流程图
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="4.4.7" data-path="../../write/faq.html">
            
                <a href="../../write/faq.html">
            
                    
                    常见问题
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    

    
        
        <li class="header">读书观感</li>
        
        
    
        <li class="chapter " data-level="5.1" data-path="../../bigDataWave/">
            
                <a href="../../bigDataWave/">
            
                    
                    大数据浪潮之巅:新技术商业制胜之道
            
                </a>
            

            
        </li>
    

    
        
        <li class="header">程序人生</li>
        
        
    
        <li class="chapter " data-level="6.1" data-path="../../todo/">
            
                <a href="../../todo/">
            
                    
                    待完成清单
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="6.1.1" data-path="../../todo/yarn-quickstart.html">
            
                <a href="../../todo/yarn-quickstart.html">
            
                    
                    yarn快速入门
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="6.1.2" data-path="../../todo/gulp-quickstart.html">
            
                <a href="../../todo/gulp-quickstart.html">
            
                    
                    gulp快速入门
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="6.1.3" data-path="../../todo/nvm-quickstart.html">
            
                <a href="../../todo/nvm-quickstart.html">
            
                    
                    nvm快速入门
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="6.1.4" data-path="../../todo/lodash-quickstart.html">
            
                <a href="../../todo/lodash-quickstart.html">
            
                    
                    lodash快速入门
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="6.1.5" data-path="../../todo/regexper-quickstart.html">
            
                <a href="../../todo/regexper-quickstart.html">
            
                    
                    regexper快速入门
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="6.1.6" data-path="../../todo/sublime-quickstart.html">
            
                <a href="../../todo/sublime-quickstart.html">
            
                    
                    sublime快速入门
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="6.1.7" data-path="../../todo/github-quickstart.html">
            
                <a href="../../todo/github-quickstart.html">
            
                    
                    github 快速入门
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="6.1.8" data-path="../../todo/svn-quickstart.html">
            
                <a href="../../todo/svn-quickstart.html">
            
                    
                    svn 快速入门
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="6.1.9" data-path="../../todo/java-quickstart.html">
            
                <a href="../../todo/java-quickstart.html">
            
                    
                    java 快速入门
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="6.1.10" data-path="../../todo/mysql-quickstart.html">
            
                <a href="../../todo/mysql-quickstart.html">
            
                    
                    mysql 快速入门
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="6.1.11" data-path="../../todo/maven-quickstart.html">
            
                <a href="../../todo/maven-quickstart.html">
            
                    
                    maven 快速入门
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="6.1.12" data-path="../../todo/tomcat-quickstart.html">
            
                <a href="../../todo/tomcat-quickstart.html">
            
                    
                    tomcat 快速入门
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="6.1.13" data-path="../../todo/gitignore-quickstart.html">
            
                <a href="../../todo/gitignore-quickstart.html">
            
                    
                    gitignore 快速入门
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="6.1.14" data-path="../../todo/gitignore-as.html">
            
                <a href="../../todo/gitignore-as.html">
            
                    
                    android studio 快速入门
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="6.1.15" data-path="../../todo/npm.html">
            
                <a href="../../todo/npm.html">
            
                    
                    npm 快速入门
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="6.1.16" data-path="../../todo/nginx.html">
            
                <a href="../../todo/nginx.html">
            
                    
                    nginx 快速入门
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="6.2" data-path="../../other/">
            
                <a href="../../other/">
            
                    
                    其他
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="6.2.1" data-path="../../other/dev-env-install.html">
            
                <a href="../../other/dev-env-install.html">
            
                    
                    重装开发环境
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="6.2.2" data-path="../../other/dingtalk-reminder.html">
            
                <a href="../../other/dingtalk-reminder.html">
            
                    
                    钉钉签到提醒
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="6.2.3" data-path="../../other/reminder.html">
            
                <a href="../../other/reminder.html">
            
                    
                    倒计时提醒
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="6.2.4" data-path="../../other/focus-website.html">
            
                <a href="../../other/focus-website.html">
            
                    
                    关注网站
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="6.2.5" data-path="../../other/transformation.html">
            
                <a href="../../other/transformation.html">
            
                    
                    转型之路
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="6.2.6" data-path="../../other/static.html">
            
                <a href="../../other/static.html">
            
                    
                    历史统计
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="6.2.7" data-path="../../other/me.html">
            
                <a href="../../other/me.html">
            
                    
                    关于作者
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="6.2.8" data-path="../../other/donate.html">
            
                <a href="../../other/donate.html">
            
                    
                    捐赠支持
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    

    
        
        <li class="header">开源项目</li>
        
        
    
        <li class="chapter " data-level="7.1" data-path="../../opensource/gitbook/">
            
                <a href="../../opensource/gitbook/">
            
                    
                    gitbook 插件项目
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="7.1.1" >
            
                <a target="_blank" href="https://xinwuyun.github.io/gitbook-official/">
            
                    
                    gitbook-official
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="7.1.2" >
            
                <a target="_blank" href="https://xinwuyun.github.io/gitbook-plugin-mygitalk/">
            
                    
                    gitbook-plugin-mygitalk
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="7.1.3" >
            
                <a target="_blank" href="https://xinwuyun.github.io/gitbook-plugin-readmore/">
            
                    
                    gitbook-plugin-readmore
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="7.1.4" >
            
                <a target="_blank" href="https://xinwuyun.github.io/gitbook-plugin-favicon-absolute/">
            
                    
                    gitbook-plugin-favicon-absolute
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="7.1.5" >
            
                <a target="_blank" href="https://xinwuyun.github.io/gitbook-plugin-copyright/">
            
                    
                    gitbook-plugin-copyright
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="7.1.6" >
            
                <a target="_blank" href="https://xinwuyun.github.io/gitbook-plugin-edit-link-plus/">
            
                    
                    gitbook-plugin-edit-link-plus
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="7.1.7" >
            
                <a target="_blank" href="https://xinwuyun.github.io/gitbook-plugin-multilingual-index/">
            
                    
                    gitbook-plugin-multilingual-index
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="7.1.8" >
            
                <a target="_blank" href="https://xinwuyun.github.io/gitbook-plugin-icp/">
            
                    
                    gitbook-plugin-icp
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="7.1.9" >
            
                <a target="_blank" href="https://xinwuyun.github.io/gitbook-plugin-diff/">
            
                    
                    gitbook-plugin-diff
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="7.1.10" >
            
                <a target="_blank" href="https://xinwuyun.github.io/gitbook-plugin-simple-mind-map/">
            
                    
                    gitbook-plugin-simple-mind-map
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="7.1.11" >
            
                <a target="_blank" href="https://xinwuyun.github.io/gitbook-plugin-punctuation-converter/">
            
                    
                    gitbook-plugin-punctuation-converter
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="7.1.12" >
            
                <a target="_blank" href="https://xinwuyun.github.io/gitbook-plugin-baidu-tongji-with-multiple-channel/">
            
                    
                    gitbook-plugin-baidu-tongji-with-multiple-channel
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="7.1.13" >
            
                <a target="_blank" href="https://xinwuyun.github.io/gitbook-plugin-google-tongji-with-multiple-channel/">
            
                    
                    gitbook-plugin-google-tongji-with-multiple-channel
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="7.2" data-path="../../opensource/hexo/">
            
                <a href="../../opensource/hexo/">
            
                    
                    hexo 插件项目
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="7.2.1" >
            
                <a target="_blank" href="https://xinwuyun.github.io/hexo-plugin-gitalk/">
            
                    
                    hexo-plugin-gitalk
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="7.2.2" >
            
                <a target="_blank" href="https://xinwuyun.github.io/hexo-plugin-readmore/">
            
                    
                    hexo-plugin-readmore
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="7.3" >
            
                <a target="_blank" href="https://security-plus.github.io/">
            
                    
                    security-plus
            
                </a>
            

            
        </li>
    

    

    <li class="divider"></li>

    <li>
        <a href="https://www.gitbook.com" target="_blank" class="gitbook-link">
            本书使用 GitBook 发布
        </a>
    </li>

    
    <li>
        &copy 2009-2021 xinwuyun.cn 版权所有 
        
        
            
        
        
            <a href="https://beian.miit.gov.cn/" target="_blank" class="gitbook-link">
                浙ICP备18042346号
            </a>
        
    </li>
    
</ul>

                </nav>
            
        
    </div>

    <div class="book-body">
        
            <div class="body-inner">
                
                    

<div class="book-header" role="navigation">
    

    <!-- Title -->
    <h1>
        <i class="fa fa-circle-o-notch fa-spin"></i>
        <a href="../.." >协同开发</a>
    </h1>
</div>




                    <div class="page-wrapper" tabindex="-1" role="main">
                        <div class="page-inner">
                            
<div class="search-plus" id="book-search-results">
    <div class="search-noresults">
    
                                <section class="normal markdown-section">
                                
                                <div id="anchor-navigation-ex-navbar"><i class="fa fa-navicon"></i><ul><li><span class="title-icon "></span><a href="#&#x534F;&#x540C;&#x5F00;&#x53D1;"><b>1. </b>&#x534F;&#x540C;&#x5F00;&#x53D1;</a></li><ul><li><span class="title-icon "></span><a href="#&#x8FDC;&#x7A0B;&#x4ED3;&#x5E93;&#x548C;&#x8FDC;&#x7A0B;&#x5206;&#x652F;"><b>1.1. </b>&#x8FDC;&#x7A0B;&#x4ED3;&#x5E93;&#x548C;&#x8FDC;&#x7A0B;&#x5206;&#x652F;</a></li><ul><li><span class="title-icon "></span><a href="#&#x8FDC;&#x7A0B;&#x4ED3;&#x5E93;"><b>1.1.1. </b>&#x8FDC;&#x7A0B;&#x4ED3;&#x5E93;</a></li><li><span class="title-icon "></span><a href="#&#x8FDC;&#x7A0B;&#x5206;&#x652F;"><b>1.1.2. </b>&#x8FDC;&#x7A0B;&#x5206;&#x652F;</a></li></ul><li><span class="title-icon "></span><a href="#&#x56E2;&#x961F;&#x534F;&#x4F5C;"><b>1.2. </b>&#x56E2;&#x961F;&#x534F;&#x4F5C;</a></li><li><span class="title-icon "></span><a href="#&#x5C0F;&#x7ED3;"><b>1.3. </b>&#x5C0F;&#x7ED3;</a></li></ul></ul></div><a href="#&#x534F;&#x540C;&#x5F00;&#x53D1;" id="anchorNavigationExGoTop"><i class="fa fa-arrow-up"></i></a><h1 id="&#x534F;&#x540C;&#x5F00;&#x53D1;"><a name="&#x534F;&#x540C;&#x5F00;&#x53D1;" class="anchor-navigation-ex-anchor" href="#&#x534F;&#x540C;&#x5F00;&#x53D1;"><i class="fa fa-link" aria-hidden="true"></i></a>1. &#x534F;&#x540C;&#x5F00;&#x53D1;</h1>
<p>&#x524D;&#x9762;&#x6211;&#x4EEC;&#x5DF2;&#x7ECF;&#x4ECB;&#x7ECD;&#x8FC7;&#x8FDC;&#x7A0B;&#x4ED3;&#x5E93;&#x7684;&#x76F8;&#x5173;&#x6982;&#x5FF5;,&#x4E0D;&#x8FC7;&#x90A3;&#x65F6;&#x5E76;&#x6CA1;&#x6709;&#x6DF1;&#x5165;&#x63A2;&#x8BA8;,&#x53EA;&#x662F;&#x8BB2;&#x89E3;&#x4E86;&#x5982;&#x4F55;&#x521B;&#x5EFA;&#x8FDC;&#x7A0B;&#x4ED3;&#x5E93;&#x4EE5;&#x53CA;&#x63A8;&#x9001;&#x6700;&#x65B0;&#x5DE5;&#x4F5C;&#x6210;&#x679C;&#x5230;&#x8FDC;&#x7A0B;&#x4ED3;&#x5E93;,&#x5B9E;&#x9645;&#x4E0A;&#x8FDC;&#x7A0B;&#x4ED3;&#x5E93;&#x5BF9;&#x4E8E;&#x56E2;&#x961F;&#x534F;&#x540C;&#x5F00;&#x53D1;&#x5F88;&#x91CD;&#x8981;,&#x4E0D;&#x4EC5;&#x4EC5;&#x662F;&#x56E2;&#x961F;&#x534F;&#x540C;&#x5F00;&#x53D1;&#x7684;&#x57FA;&#x7840;,&#x4E5F;&#x662F;&#x4EE3;&#x7801;&#x5907;&#x4EFD;&#x7684;&#x4FDD;&#x969C;&#x624B;&#x6BB5;,&#x73B0;&#x5728;&#x6211;&#x4EEC;&#x5148;&#x7B80;&#x5355;&#x56DE;&#x5FC6;&#x4E0B;&#x76F8;&#x5173;&#x6982;&#x5FF5;,&#x4EE5;&#x4FBF;&#x4E3A;&#x63A5;&#x4E0B;&#x6765;&#x7684;&#x534F;&#x540C;&#x5F00;&#x53D1;&#x505A;&#x597D;&#x94FA;&#x57AB;!</p>
<h2 id="&#x8FDC;&#x7A0B;&#x4ED3;&#x5E93;&#x548C;&#x8FDC;&#x7A0B;&#x5206;&#x652F;"><a name="&#x8FDC;&#x7A0B;&#x4ED3;&#x5E93;&#x548C;&#x8FDC;&#x7A0B;&#x5206;&#x652F;" class="anchor-navigation-ex-anchor" href="#&#x8FDC;&#x7A0B;&#x4ED3;&#x5E93;&#x548C;&#x8FDC;&#x7A0B;&#x5206;&#x652F;"><i class="fa fa-link" aria-hidden="true"></i></a>1.1. &#x8FDC;&#x7A0B;&#x4ED3;&#x5E93;&#x548C;&#x8FDC;&#x7A0B;&#x5206;&#x652F;</h2>
<h3 id="&#x8FDC;&#x7A0B;&#x4ED3;&#x5E93;"><a name="&#x8FDC;&#x7A0B;&#x4ED3;&#x5E93;" class="anchor-navigation-ex-anchor" href="#&#x8FDC;&#x7A0B;&#x4ED3;&#x5E93;"><i class="fa fa-link" aria-hidden="true"></i></a>1.1.1. &#x8FDC;&#x7A0B;&#x4ED3;&#x5E93;</h3>
<p><strong>&#x8FDC;&#x7A0B;&#x4ED3;&#x5E93;</strong>&#x5176;&#x5B9E;&#x5E76;&#x4E0D;&#x590D;&#x6742;,&#x5B9E;&#x9645;&#x4E0A;&#x53EA;&#x662F;<strong>&#x672C;&#x5730;&#x7535;&#x8111;</strong>&#x4E0A;&#x7684;&#x672C;&#x5730;&#x4ED3;&#x5E93;&#x5728;&#x53E6;&#x4E00;&#x53F0;<strong>&#x8FDC;&#x7A0B;&#x7535;&#x8111;</strong>&#x7684;&#x5907;&#x4EFD;&#x800C;&#x5DF2;.</p>
<p>&#x76F8;&#x5BF9;&#x672C;&#x5730;&#x4ED3;&#x5E93;&#x6765;&#x8BF4;<strong>&#x8FDC;&#x7A0B;&#x7535;&#x8111;&#x4E0A;&#x7684;&#x7248;&#x672C;&#x5E93;</strong>&#x81EA;&#x7136;&#x5C31;&#x662F;<strong>&#x8FDC;&#x7A0B;&#x4ED3;&#x5E93;</strong>,&#x8FDC;&#x7A0B;&#x4ED3;&#x5E93;&#x4F7F;&#x5F97;&#x6211;&#x4EEC;&#x7684;&#x7248;&#x672C;&#x5E93;&#x66F4;&#x52A0;&#x5B89;&#x5168;,&#x6BD5;&#x7ADF;&#x8FDC;&#x7A0B;&#x7535;&#x8111;&#x53EF;&#x4E0D;&#x662F;&#x4E00;&#x822C;&#x7684;&#x7535;&#x8111;,&#x51FA;&#x9519;&#x7684;&#x6982;&#x7387;&#x6BD4;&#x6211;&#x4EEC;&#x5E73;&#x65F6;&#x5DE5;&#x4F5C;&#x6240;&#x4F7F;&#x7528;&#x7684;&#x7535;&#x8111;&#x6982;&#x7387;&#x8981;&#x5C0F;&#x5F97;&#x591A;,&#x8FD9;&#x6837;&#x4E00;&#x6765;&#x5373;&#x4F7F;&#x4E0D;&#x5C0F;&#x5FC3;&#x4E22;&#x5931;&#x4E86;&#x672C;&#x5730;&#x4ED3;&#x5E93;&#x7684;&#x5168;&#x90E8;&#x6570;&#x636E;,&#x53EA;&#x8981;&#x8FDC;&#x7A0B;&#x4ED3;&#x5E93;&#x6CA1;&#x6709;&#x4E22;&#x5931;,&#x90A3;&#x6211;&#x4EEC;&#x5C31;&#x53EF;&#x4EE5;&#x901A;&#x8FC7;&#x8FDC;&#x7A0B;&#x4ED3;&#x5E93;&#x91CD;&#x65B0;&#x53D6;&#x56DE;&#x6700;&#x65B0;&#x6570;&#x636E;!</p>
<p>&#x8FD8;&#x6709;&#x4E00;&#x70B9;,&#x8FDC;&#x7A0B;&#x4ED3;&#x5E93;&#x8BA9;<strong>&#x4EE3;&#x7801;&#x793E;&#x4EA4;&#x5316;</strong>,&#x56E0;&#x4E3A;&#x5927;&#x5BB6;&#x6709;&#x4E86;<strong>&#x4E00;&#x81F4;&#x9014;&#x5F84;</strong>&#x6765;&#x8BBF;&#x95EE;&#x8FDC;&#x7A0B;&#x4ED3;&#x5E93;,&#x56E2;&#x961F;&#x4E5F;&#x597D;&#x6216;&#x8005;&#x964C;&#x751F;&#x4EBA;&#x4E5F;&#x7F62;,&#x53EA;&#x6709;&#x4F60;&#x613F;&#x610F;,&#x4ED6;&#x4EEC;&#x5C31;&#x53EF;&#x4EE5;&#x83B7;&#x53D6;&#x8FDC;&#x7A0B;&#x4ED3;&#x5E93;&#x7684;&#x6700;&#x65B0;&#x4EE3;&#x7801;&#x5E76;&#x53C2;&#x4E0E;&#x5F00;&#x53D1;,&#x8FD9;&#x4E5F;&#x662F; <code>github</code> &#x7684;&#x4E00;&#x5927;&#x4EAE;&#x70B9;!</p>
<h3 id="&#x8FDC;&#x7A0B;&#x5206;&#x652F;"><a name="&#x8FDC;&#x7A0B;&#x5206;&#x652F;" class="anchor-navigation-ex-anchor" href="#&#x8FDC;&#x7A0B;&#x5206;&#x652F;"><i class="fa fa-link" aria-hidden="true"></i></a>1.1.2. &#x8FDC;&#x7A0B;&#x5206;&#x652F;</h3>
<p>&#x56DE;&#x987E;&#x597D;&#x8FDC;&#x7A0B;&#x4ED3;&#x5E93;&#x7684;&#x6982;&#x5FF5;&#x540E;,&#x6211;&#x4EEC;&#x518D;&#x6765;&#x8BB2;&#x4E00;&#x4E0B;&#x672C;&#x5730;&#x4ED3;&#x5E93;&#x7684;<strong>&#x8FDC;&#x7A0B;&#x5206;&#x652F;</strong>&#x662F;&#x4EC0;&#x4E48;&#x610F;&#x601D;?</p>
<p>&#x5F53;&#x524D;&#x4F60;&#x6B63;&#x5728;&#x5DE5;&#x4F5C;&#x7684;&#x7535;&#x8111;&#x4E0A;&#x5B58;&#x50A8;&#x7684;&#x662F;<strong>&#x672C;&#x5730;&#x4ED3;&#x5E93;</strong>,&#x5982;&#x679C;&#x6CA1;&#x6709;<strong>&#x8FDC;&#x7A0B;&#x4ED3;&#x5E93;</strong>&#x7684;&#x652F;&#x6301;,&#x53EA;&#x80FD;&#x4E00;&#x4E2A;&#x4EBA;&#x9F13;&#x6363;,&#x522B;&#x4EBA;&#x65E0;&#x6CD5;&#x5171;&#x4EAB;&#x4F60;&#x7684;&#x5DE5;&#x4F5C;&#x6210;&#x679C;,&#x73B0;&#x5728;&#x52A0;&#x5165;&#x4E86;&#x56E2;&#x961F;&#x5F00;&#x53D1;&#x6D41;&#x7A0B;,&#x81EA;&#x7136;&#x4E0D;&#x518D;&#x4E00;&#x4E2A;&#x4EBA;&#x72EC;&#x81EA;&#x5F00;&#x53D1;,&#x9700;&#x8981;&#x548C;&#x56E2;&#x961F;&#x5176;&#x4ED6;&#x4EBA;&#x534F;&#x540C;&#x5F00;&#x53D1;,&#x5171;&#x4EAB;&#x5F00;&#x53D1;&#x6210;&#x679C;.</p>
<p>&#x6240;&#x4EE5;&#x672C;&#x5730;&#x4ED3;&#x5E93;&#x5FC5;&#x7136;&#x4FDD;&#x5B58;&#x7740;&#x8FDC;&#x7A0B;&#x4ED3;&#x5E93;&#x7684;&#x57FA;&#x672C;&#x4FE1;&#x606F;,&#x53EA;&#x6709;&#x533A;&#x5206;&#x597D;<strong>&#x81EA;&#x5DF1;&#x7684;&#x5DE5;&#x4F5C;&#x6210;&#x679C;</strong>&#x548C;<strong>&#x516C;&#x5171;&#x6210;&#x679C;</strong>,&#x624D;&#x80FD;&#x4E0D;&#x4E71;&#x5957;,&#x53C8;&#x80FD;&#x505A;&#x5230;&#x4FE1;&#x606F;&#x53CA;&#x65F6;&#x5171;&#x4EAB;.</p>
<p>&#x5B9E;&#x9645;&#x4E0A;,&#x5728;&#x9879;&#x76EE;&#x521D;&#x671F;&#x521A;&#x521A;&#x62F7;&#x8D1D;&#x8FDC;&#x7A0B;&#x4ED3;&#x5E93;(<code>git clone</code>)&#x65F6;,<code>git</code> &#x5DF2;&#x7ECF;&#x9ED8;&#x8BA4;&#x5728;&#x672C;&#x5730;&#x4ED3;&#x5E93;&#x521B;&#x5EFA;&#x4E00;&#x4E2A;&#x8FDC;&#x7A0B;&#x5206;&#x652F;(<code>origin/master</code>),&#x672C;&#x5730;&#x4FEE;&#x6539;&#x63D0;&#x4EA4;&#x9996;&#x5148;&#x90FD;&#x662F;&#x5728;&#x672C;&#x5730;&#x4ED3;&#x5E93;&#x5B8C;&#x6210;&#x7684;,&#x6BD4;&#x5982; <code>git add</code>,<code>git commit</code> &#x7B49;&#x547D;&#x4EE4;,&#x5982;&#x679C;&#x9700;&#x8981;&#x53D1;&#x5E03;&#x4F60;&#x7684;&#x5DE5;&#x4F5C;&#x6210;&#x679C;,&#x90A3;&#x4E48;&#x5C31;&#x9700;&#x8981;&#x4F7F;&#x7528; <code>git push origin &lt;branch&gt;</code> &#x547D;&#x4EE4;&#x63A8;&#x9001;&#x5230;&#x8FDC;&#x7A0B;&#x4ED3;&#x5E93;,&#x8FD9;&#x91CC;&#x7684; <code>origin</code> &#x6307;&#x7684;&#x5C31;&#x662F;&#x8FDC;&#x7A0B;&#x4ED3;&#x5E93;&#x540D;&#x79F0;(&#x56E0;&#x4E3A;&#x6700;&#x521D;&#x5927;&#x5BB6;&#x90FD;&#x662F;&#x5148;&#x4ECE;&#x8FDC;&#x7A0B;&#x4ED3;&#x5E93;&#x514B;&#x9686;&#x4E0B;&#x6765;&#x7684;,&#x6240;&#x4EE5;&#x8FDC;&#x7A0B;&#x4ED3;&#x5E93;&#x5B58;&#x50A8;&#x7684;&#x9879;&#x76EE;&#x76F8;&#x5F53;&#x4E8E;&#x539F;&#x59CB;&#x9879;&#x76EE;,&#x6545;&#x800C;&#x53EB;<code>origin</code>).</p>
<p><code>git clone</code> &#x547D;&#x4EE4;&#x5E2E;&#x52A9;&#x672C;&#x5730;&#x4ED3;&#x5E93;&#x7684; <code>master</code> &#x5206;&#x652F;&#x548C;&#x8FDC;&#x7A0B;&#x4ED3;&#x5E93;&#x7684; <code>master</code> &#x5206;&#x652F;&#x5EFA;&#x7ACB;&#x4E86;&#x5173;&#x8054;,&#x4E00;&#x822C;&#x79F0;&#x8FDC;&#x7A0B;&#x4ED3;&#x5E93;&#x540D;&#x79F0;&#x4E3A; <code>origin</code>.</p>
<p><img src="../images/git-clone.png" alt="git-clone.png"></p>
<h4 id="&#x67E5;&#x770B;&#x8FDC;&#x7A0B;&#x4ED3;&#x5E93;&#x4FE1;&#x606F;--git-remote-&#x6216;-git-remote--v"><a name="&#x67E5;&#x770B;&#x8FDC;&#x7A0B;&#x4ED3;&#x5E93;&#x4FE1;&#x606F;--git-remote-&#x6216;-git-remote--v" class="anchor-navigation-ex-anchor" href="#&#x67E5;&#x770B;&#x8FDC;&#x7A0B;&#x4ED3;&#x5E93;&#x4FE1;&#x606F;--git-remote-&#x6216;-git-remote--v"><i class="fa fa-link" aria-hidden="true"></i></a><strong>&#x67E5;&#x770B;&#x8FDC;&#x7A0B;&#x4ED3;&#x5E93;&#x4FE1;&#x606F;</strong> : <code>git remote</code> &#x6216; <code>git remote -v</code></h4>
<pre><code># &#x67E5;&#x770B;&#x8FDC;&#x7A0B;&#x4ED3;&#x5E93;&#x540D;&#x79F0;
$ git remote
origin

# &#x67E5;&#x770B;&#x8FDC;&#x7A0B;&#x4ED3;&#x5E93;&#x8BE6;&#x60C5; : &#x62C9;&#x53D6;&#x548C;&#x63A8;&#x9001;&#x94FE;&#x63A5;
$ git remote -v
origin  git@github.com:xinwuyun/git-demo.git (fetch)
origin  git@github.com:xinwuyun/git-demo.git (push)
$
</code></pre><h4 id="&#x672C;&#x5730;&#x5206;&#x652F;&#x63A8;&#x9001;&#x5230;&#x8FDC;&#x7A0B;&#x4ED3;&#x5E93;--git-push-origin-branch"><a name="&#x672C;&#x5730;&#x5206;&#x652F;&#x63A8;&#x9001;&#x5230;&#x8FDC;&#x7A0B;&#x4ED3;&#x5E93;--git-push-origin-branch" class="anchor-navigation-ex-anchor" href="#&#x672C;&#x5730;&#x5206;&#x652F;&#x63A8;&#x9001;&#x5230;&#x8FDC;&#x7A0B;&#x4ED3;&#x5E93;--git-push-origin-branch"><i class="fa fa-link" aria-hidden="true"></i></a><strong>&#x672C;&#x5730;&#x5206;&#x652F;&#x63A8;&#x9001;&#x5230;&#x8FDC;&#x7A0B;&#x4ED3;&#x5E93;</strong> : <code>git push origin &lt;branch&gt;</code></h4>
<p>&#x672C;&#x5730;&#x4ED3;&#x5E93;&#x548C;&#x8FDC;&#x7A0B;&#x4ED3;&#x5E93;&#x7684;&#x5206;&#x652F;&#x7406;&#x8BBA;&#x4E0A;&#x5E94;&#x8BE5;&#x4E00;&#x4E00;&#x5BF9;&#x5E94;,&#x672C;&#x5730;&#x4ED3;&#x5E93;&#x7684;&#x4E3B;&#x5E72;&#x5206;&#x652F;&#x53EB;&#x505A; <code>master</code> ,&#x800C;&#x8FDC;&#x7A0B;&#x4ED3;&#x5E93;&#x4E5F;&#x6709;&#x76F8;&#x5E94;&#x7684;&#x5206;&#x652F;&#x53EB;&#x505A; <code>master</code> ,&#x8FD9;&#x79CD;&#x6620;&#x5C04;&#x5173;&#x7CFB;&#x662F;&#x4F7F;&#x7528; <code>git clone</code> &#x547D;&#x4EE4;&#x65F6;&#x9ED8;&#x8BA4;&#x751F;&#x6210;&#x7684;,&#x4E5F;&#x662F;&#x63A8;&#x8350;&#x7684;&#x505A;&#x6CD5;.</p>
<p>&#x4E00;&#x822C;&#x6765;&#x8BF4;,&#x672C;&#x5730;&#x4ED3;&#x5E93;&#x7684;&#x5206;&#x652F;&#x63A8;&#x9001;&#x5230;&#x8FDC;&#x7A0B;&#x4ED3;&#x5E93;&#x6307;&#x7684;&#x5C31;&#x662F;&#x63A8;&#x9001;&#x5230;&#x8FDC;&#x7A0B;&#x4ED3;&#x5E93;&#x540C;&#x540D;&#x7684;&#x5206;&#x652F;&#x4E0A;,&#x4F8B;&#x5982; <code>git push origin master</code> &#x610F;&#x601D;&#x662F;: &#x63A8;&#x5C06;&#x672C;&#x5730;&#x4ED3;&#x5E93;&#x7684; <code>master</code> &#x5206;&#x652F;&#x63A8;&#x9001;&#x5230;&#x8FDC;&#x7A0B;&#x4ED3;&#x5E93;&#x7684; <code>master</code>&#x5206;&#x652F;,&#x5F53;&#x7136;&#x4F60;&#x4E5F;&#x53EF;&#x4EE5;&#x63A8;&#x9001;&#x5176;&#x4ED6;&#x5206;&#x652F;&#x5230;&#x76F8;&#x5E94;&#x7684;&#x8FDC;&#x7A0B;&#x5206;&#x652F;&#x4E0A;.</p>
<p>&#x6309;&#x7167;&#x4E4B;&#x524D;&#x7EA6;&#x5B9A;&#x7684;&#x5206;&#x652F;&#x7BA1;&#x7406;&#x7B56;&#x7565;&#x6765;&#x8BF4;,<code>master</code> &#x5206;&#x652F;&#x7528;&#x4E8E;<strong>&#x751F;&#x4EA7;&#x73AF;&#x5883;</strong>&#x90E8;&#x7F72;,<code>dev</code> &#x5206;&#x652F;&#x7528;&#x4E8E;<strong>&#x6536;&#x96C6;&#x5F00;&#x53D1;&#x6210;&#x679C;</strong>,<code>feature</code> &#x5206;&#x652F;&#x7528;&#x4E8E;<strong>&#x5F00;&#x53D1;&#x5177;&#x4F53;&#x529F;&#x80FD;</strong>&#x5206;&#x652F;,&#x65E2;&#x7136;&#x5982;&#x6B64;,&#x90A3;&#x8FD9;&#x4E9B;&#x672C;&#x5730;&#x5206;&#x652F;&#x54EA;&#x4E9B;&#x9700;&#x8981;<strong>&#x540C;&#x6B65;&#x63A8;&#x9001;</strong>&#x5230;&#x8FDC;&#x7A0B;&#x4ED3;&#x5E93;&#x5C31;&#x6BD4;&#x8F83;&#x6E05;&#x6670;&#x4E86;!</p>
<ul>
<li>&#x63A8;&#x9001;&#x672C;&#x5730; <code>master</code> &#x5206;&#x652F;&#x5230;&#x8FDC;&#x7A0B;&#x4ED3;&#x5E93;&#x7684; <code>master</code> &#x5206;&#x652F; : <code>git push origin master</code></li>
<li>&#x63A8;&#x9001;&#x672C;&#x5730; <code>dev</code> &#x5206;&#x652F;&#x5230;&#x5143;&#x5C42;&#x4ED3;&#x5E93;&#x7684; <code>dev</code> &#x5206;&#x652F; : <code>git push origin dev</code></li>
</ul>
<pre><code># &#x67E5;&#x770B;&#x5F53;&#x524D;&#x5206;&#x652F; : `master` &#x4E3B;&#x5206;&#x652F;
$ git branch
  dev
* master
  snow

# &#x63A8;&#x9001;&#x672C;&#x5730; `master` &#x5206;&#x652F;&#x5230;&#x8FDC;&#x7A0B;&#x4ED3;&#x5E93; `origin` &#x4E0A;&#x76F8;&#x5E94;&#x7684; `master` &#x5206;&#x652F; 
$ git push origin master
Counting objects: 15, done.
Delta compression using up to 4 threads.
Compressing objects: 100% (15/15), done.
Writing objects: 100% (15/15), 1.31 KiB | 1.31 MiB/s, done.
Total 15 (delta 9), reused 0 (delta 0)
remote: Resolving deltas: 100% (9/9), completed with 3 local objects.
To github.com:xinwuyun/git-demo.git
   e60c8ad..dcce09c  master -&gt; master
$
</code></pre><p><img src="../images/git-branch-remote-github.png" alt="git-branch-remote-github.png"></p>
<p>&#x6B63;&#x5E38;&#x6765;&#x8BF4;,&#x672C;&#x5730;&#x4ED3;&#x5E93;&#x7684; <code>master</code> &#x5206;&#x652F;&#x5E94;&#x8BE5;&#x9886;&#x5148;&#x8FDC;&#x7A0B;&#x4ED3;&#x5E93; <code>origin</code> &#x4E0A;&#x7684; <code>master</code> &#x5206;&#x652F;&#x82E5;&#x5E72;&#x4E2A;&#x7248;&#x672C;.</p>
<p><img src="../images/git-branch-remote-commit.png" alt="git-branch-remote-commit.png"></p>
<p>&#x4E00;&#x65E6;&#x6211;&#x4EEC;&#x5DF2;&#x7ECF;&#x5C06;&#x672C;&#x5730;&#x5206;&#x652F;&#x4E0A;&#x7684;&#x5DE5;&#x4F5C;&#x6210;&#x679C;&#x63A8;&#x9001;&#x5230;&#x8FDC;&#x7A0B;&#x4ED3;&#x5E93;&#x4E0A;&#x76F8;&#x5E94;&#x5206;&#x652F;&#x65F6;,&#x672C;&#x5730;&#x4ED3;&#x5E93;&#x548C;&#x8FDC;&#x7A0B;&#x4ED3;&#x5E93;&#x8FD9;&#x65F6;&#x5019;&#x5C31;&#x4FDD;&#x6301;&#x4E00;&#x81F4;&#x4E86;.</p>
<pre><code>$ git status
On branch master
Your branch is up to date with &apos;origin/master&apos;.

nothing to commit, working tree clean
$
</code></pre><p><img src="../images/git-branch-remote-master.png" alt="git-branch-remote-master.png"></p>
<h4 id="&#x8FDC;&#x7A0B;&#x4ED3;&#x5E93;&#x4E0B;&#x8F7D;&#x5230;&#x672C;&#x5730;&#x5206;&#x652F;--git-fetch"><a name="&#x8FDC;&#x7A0B;&#x4ED3;&#x5E93;&#x4E0B;&#x8F7D;&#x5230;&#x672C;&#x5730;&#x5206;&#x652F;--git-fetch" class="anchor-navigation-ex-anchor" href="#&#x8FDC;&#x7A0B;&#x4ED3;&#x5E93;&#x4E0B;&#x8F7D;&#x5230;&#x672C;&#x5730;&#x5206;&#x652F;--git-fetch"><i class="fa fa-link" aria-hidden="true"></i></a><strong>&#x8FDC;&#x7A0B;&#x4ED3;&#x5E93;&#x4E0B;&#x8F7D;&#x5230;&#x672C;&#x5730;&#x5206;&#x652F;</strong> : <code>git fetch</code></h4>
<p>&#x8FDC;&#x7A0B;&#x4ED3;&#x5E93;&#x7684;&#x64CD;&#x4F5C;&#x53EF;&#x4EE5;&#x7B80;&#x5355;&#x5F52;&#x7EB3;&#x4E3A;&#x4E24;&#x90E8;&#x5206;: &#x4E0A;&#x4F20;&#x548C;&#x4E0B;&#x8F7D;.</p>
<p>&#x672C;&#x5730;&#x4ED3;&#x5E93;&#x63A8;&#x9001;&#x5230;&#x8FDC;&#x7A0B;&#x4ED3;&#x5E93;&#x662F;&#x4E0A;&#x4F20;,&#x800C;&#x8FDC;&#x7A0B;&#x4ED3;&#x5E93;&#x62C9;&#x53D6;&#x5230;&#x672C;&#x5730;&#x4ED3;&#x5E93;&#x5C31;&#x662F;&#x4E0B;&#x8F7D;.</p>
<p>&#x56E2;&#x961F;&#x591A;&#x4EBA;&#x534F;&#x4F5C;&#x5F00;&#x53D1;&#x65F6;,&#x5927;&#x5BB6;&#x90FD;&#x4F1A;&#x5B9A;&#x671F;&#x6216;&#x4E0D;&#x5B9A;&#x671F;&#x5F80; <code>master</code> &#x6216; <code>dev</code> &#x7B49;&#x5206;&#x652F;&#x4E0A;&#x63A8;&#x9001;&#x5404;&#x81EA;&#x7684;&#x66F4;&#x6539;,&#x76F8;&#x5E94;&#x7684;&#x6211;&#x4EEC;&#x5C31;&#x9700;&#x8981;&#x4E0B;&#x8F7D;&#x522B;&#x4EBA;&#x7684;&#x6700;&#x65B0;&#x5DE5;&#x4F5C;&#x6210;&#x679C;.</p>
<p>&#x73B0;&#x5728;&#x6A21;&#x62DF;&#x5176;&#x4ED6;&#x4F19;&#x4F34;&#x6B63;&#x5728;&#x5F80; <code>master</code> &#x5206;&#x652F;&#x4E0A;&#x63A8;&#x9001;&#x66F4;&#x6539;,&#x6700;&#x597D;&#x5728;&#x53E6;&#x4E00;&#x4E2A;&#x7535;&#x8111;&#x53E6;&#x4E00;&#x4E2A;&#x8D26;&#x6237;,&#x5F53;&#x7136;&#x6A21;&#x62DF;&#x7684;&#x8BDD;&#x4E5F;&#x53EF;&#x4EE5;&#x662F;&#x540C;&#x4E00;&#x4E2A;&#x7535;&#x8111;&#x4E0B;&#x5176;&#x4ED6;&#x76EE;&#x5F55;,&#x6216;&#x8005;&#x6700;&#x7B80;&#x5355;&#x7684;&#x65B9;&#x5F0F;,&#x76F4;&#x63A5;&#x767B;&#x5F55; <code>github</code> &#x66F4;&#x6539; <code>master</code> &#x5206;&#x652F;&#x4E0A;&#x67D0;&#x4E2A;&#x6587;&#x4EF6;&#x5185;&#x5BB9;,&#x7B80;&#x5355;&#x8D77;&#x89C1;,&#x6211;&#x4EEC;&#x91C7;&#x7528;&#x6700;&#x540E;&#x4E00;&#x79CD;&#x65B9;&#x5F0F;.</p>
<p>&#x5176;&#x4ED6;&#x4F19;&#x4F34;&#x5DF2;&#x5F80;&#x8FDC;&#x7A0B;&#x4ED3;&#x5E93;&#x4E0A;&#x7684; <code>master</code> &#x5206;&#x652F;&#x63D0;&#x4EA4;&#x4E86;&#x65B0;&#x7684;&#x7248;&#x672C;: &#x521B;&#x5EFA; <code>git-remote.txt</code> &#x6587;&#x4EF6;</p>
<p><img src="../images/git-branch-remote-new-commit.png" alt="git-branch-remote-new-commit.png"></p>
<p>&#x73B0;&#x5728;&#x6211;&#x4EEC;&#x60F3;&#x8981;&#x4E0B;&#x8F7D;&#x5176;&#x4ED6;&#x4EBA;&#x7684;&#x6700;&#x65B0;&#x5DE5;&#x4F5C;&#x6210;&#x679C;,&#x63A5;&#x4E0B;&#x6765;&#x8BA9;&#x6211;&#x4EEC;&#x770B;&#x770B;&#x672C;&#x5730;&#x4ED3;&#x5E93;&#x7684; <code>master</code> &#x8FD8;&#x80FD;&#x548C;&#x8FDC;&#x7A0B;&#x4ED3;&#x5E93;&#x7684; <code>master</code> &#x5206;&#x652F;&#x4FDD;&#x6301;&#x4E00;&#x81F4;&#x5417;?</p>
<p><img src="../images/git-branch-remote-fetch.png" alt="git-branch-remote-fetch.png"></p>
<pre><code># &#x4E0B;&#x8F7D;&#x8FDC;&#x7A0B;&#x4ED3;&#x5E93;&#x7684; `master` &#x5206;&#x652F;
$ git fetch origin master
remote: Enumerating objects: 4, done.
remote: Counting objects: 100% (4/4), done.
remote: Compressing objects: 100% (2/2), done.
remote: Total 3 (delta 0), reused 0 (delta 0), pack-reused 0
Unpacking objects: 100% (3/3), done.
From github.com:xinwuyun/git-demo
 * branch            master     -&gt; FETCH_HEAD
   dcce09c..10942ff  master     -&gt; origin/master
$
</code></pre><p><img src="../images/git-branch-remote-fetch-master.png" alt="git-branch-remote-fetch-master.png"></p>
<p>&#x6267;&#x884C; <code>git fetch</code> &#x547D;&#x4EE4;&#x540E;,&#x8FDC;&#x7A0B;&#x4ED3;&#x5E93;&#x4E0A;&#x7684;&#x6700;&#x65B0;&#x63D0;&#x4EA4;&#x8BB0;&#x5F55;&#x5DF2;&#x7ECF;&#x4E0B;&#x8F7D;&#x5230;&#x672C;&#x5730;&#x4ED3;&#x5E93;,&#x540C;&#x65F6;&#x66F4;&#x65B0;&#x4E86;&#x672C;&#x5730;&#x4ED3;&#x5E93;&#x7684;&#x8FDC;&#x7A0B;&#x5206;&#x652F;<code>origin/master</code> ,&#x503C;&#x5F97;&#x6CE8;&#x610F;&#x7684;&#x662F;&#x672C;&#x5730;&#x4ED3;&#x5E93;&#x7684; <code>master</code> &#x5206;&#x652F;&#x5E76;&#x6CA1;&#x6709;&#x66F4;&#x65B0;!</p>
<p>&#x90A3;&#x4F60;&#x53EF;&#x80FD;&#x4F1A;&#x6709;&#x7591;&#x95EE;&#x4E86;,&#x6211;&#x60F3;&#x8981;&#x7684;&#x7ED3;&#x679C;&#x662F;&#x4E0B;&#x8F7D;&#x5176;&#x4ED6;&#x4EBA;&#x7684;&#x6700;&#x65B0;&#x5DE5;&#x4F5C;&#x6210;&#x679C;,&#x600E;&#x4E48;&#x6211;&#x672C;&#x5730;&#x4ED3;&#x5E93;&#x7684; <code>master</code> &#x5206;&#x652F;&#x5E76;&#x6CA1;&#x6709;&#x66F4;&#x65B0;&#x5462;?</p>
<pre><code># &#x67E5;&#x770B;&#x5DE5;&#x4F5C;&#x533A;
$ ls
LICENSE     README.md   test.txt

# &#x67E5;&#x770B;&#x7248;&#x672C;&#x5E93;&#x72B6;&#x6001;
$ git status
On branch master
Your branch is behind &apos;origin/master&apos; by 1 commit, and can be fast-forwarded.
  (use &quot;git pull&quot; to update your local branch)

nothing to commit, working tree clean
$
</code></pre><p>&#x65E2;&#x7136; <code>git fetch</code> &#x5E76;&#x6CA1;&#x6709;&#x66F4;&#x65B0;&#x672C;&#x5730;&#x4ED3;&#x5E93;&#x7684; <code>master</code> &#x5206;&#x652F;,&#x90A3;&#x5B83;&#x5230;&#x5E95;&#x505A;&#x4E86;&#x54EA;&#x4E9B;&#x5DE5;&#x4F5C;&#x5462;?</p>
<p><strong><code>git fetch &#x4F1A;&#x505A;&#x7684;&#x4E8B;&#x60C5;</code></strong></p>
<p>&#x5B9E;&#x9645;&#x4E0A;, <code>git fetch</code> &#x5B8C;&#x6210;&#x4E86;&#x4EC5;&#x6709;&#x7684;&#x4F46;&#x662F;&#x5F88;&#x91CD;&#x8981;&#x7684;&#x4E24;&#x6B65;&#x64CD;&#x4F5C;:</p>
<ul>
<li>&#x4ECE;&#x8FDC;&#x7A0B;&#x4ED3;&#x5E93;&#x4E0B;&#x8F7D;&#x672C;&#x5730;&#x4ED3;&#x5E93;&#x4E2D;&#x7F3A;&#x5931;&#x7684;&#x63D0;&#x4EA4;&#x8BB0;&#x5F55;</li>
<li>&#x66F4;&#x65B0;&#x672C;&#x5730;&#x4ED3;&#x5E93;&#x7684;&#x8FDC;&#x7A0B;&#x5206;&#x652F;(&#x6BD4;&#x5982;<code>origin/master</code>)</li>
</ul>
<p>&#x901A;&#x8FC7;&#x4E0A;&#x8FF0;&#x4E24;&#x6B65;&#x64CD;&#x4F5C;&#x5B8C;&#x6210;&#x7684;&#x6548;&#x679C;&#x662F;: <strong>&#x5C06;&#x672C;&#x5730;&#x4ED3;&#x5E93;&#x4E2D;&#x7684;&#x8FDC;&#x7A0B;&#x5206;&#x652F;&#x66F4;&#x65B0;&#x6210;&#x4E86;&#x8FDC;&#x7A0B;&#x4ED3;&#x5E93;&#x76F8;&#x5E94;&#x5206;&#x652F;&#x6700;&#x65B0;&#x7684;&#x72B6;&#x6001;</strong>.</p>
<p><strong>&#x8FDC;&#x7A0B;&#x5206;&#x652F;</strong>&#x5B9E;&#x9645;&#x4E0A;&#x662F;&#x53CD;&#x6620;&#x4E86;<strong>&#x8FDC;&#x7A0B;&#x4ED3;&#x5E93;</strong>&#x5728;&#x4F60;&#x6700;&#x540E;&#x4E00;&#x6B21;&#x4E0E;&#x5B83;&#x901A;&#x4FE1;&#x65F6;&#x7684;&#x72B6;&#x6001;,&#x800C;<code>git fetch</code> &#x5C31;&#x662F;&#x4F60;&#x4E0E;&#x8FDC;&#x7A0B;&#x4ED3;&#x5E93;&#x901A;&#x4FE1;&#x7684;&#x65B9;&#x5F0F;&#x4E86;&#xFF01;</p>
<p><strong><code>git fetch &#x4E0D;&#x4F1A;&#x505A;&#x7684;&#x4E8B;&#x60C5;</code></strong></p>
<p><code>git fetch</code> &#x5E76;&#x4E0D;&#x4F1A;&#x6539;&#x53D8;&#x4F60;&#x672C;&#x5730;&#x4ED3;&#x5E93;&#x7684;&#x72B6;&#x6001;,&#x6240;&#x4EE5;&#x4E5F;&#x5C31;&#x4E0D;&#x4F1A;&#x66F4;&#x65B0;&#x4F60;&#x7684; <code>master</code>&#x5206;&#x652F;,&#x81EA;&#x7136;&#x4E5F;&#x4E0D;&#x4F1A;&#x4FEE;&#x6539;&#x4F60;&#x78C1;&#x76D8;&#x4E0A;&#x7684;&#x6587;&#x4EF6;.</p>
<p>&#x7406;&#x89E3;&#x8FD9;&#x4E00;&#x70B9;&#x5F88;&#x91CD;&#x8981;,&#x56E0;&#x4E3A;&#x8BB8;&#x591A;&#x5F00;&#x53D1;&#x4EBA;&#x5458;&#x8BEF;&#x4EE5;&#x4E3A;&#x6267;&#x884C;&#x4E86; <code>git fetch</code> &#x4EE5;&#x540E;&#xFF0C;&#x4ED6;&#x4EEC;&#x672C;&#x5730;&#x4ED3;&#x5E93;&#x5C31;&#x4E0E;&#x8FDC;&#x7A0B;&#x4ED3;&#x5E93;&#x540C;&#x6B65;&#x4E86;.</p>
<p>&#x5B9E;&#x9645;&#x4E0A;&#x5B83;&#x53EF;&#x80FD;&#x5DF2;&#x7ECF;&#x5C06;&#x8FDB;&#x884C;&#x8FD9;&#x4E00;&#x64CD;&#x4F5C;&#x6240;&#x9700;&#x7684;&#x6240;&#x6709;&#x6570;&#x636E;&#x90FD;&#x4E0B;&#x8F7D;&#x4E86;&#x4E0B;&#x6765;,&#x4F46;&#x662F;&#x5E76;&#x6CA1;&#x6709;&#x4FEE;&#x6539;&#x4F60;&#x672C;&#x5730;&#x7684;&#x6587;&#x4EF6;.</p>
<blockquote>
<p>&#x65E2;&#x7136;&#x672C;&#x5730;&#x4ED3;&#x5E93;&#x7684;&#x8FDC;&#x7A0B;&#x5206;&#x652F;&#x5DF2;&#x66F4;&#x65B0;,&#x90A3;&#x4E48;&#x60F3;&#x8981;&#x66F4;&#x65B0;&#x672C;&#x5730;&#x4ED3;&#x5E93;&#x7684; <code>master</code> &#x5206;&#x652F;&#x8BE5;&#x5982;&#x4F55;&#x505A;&#x5462;?&#x5F88;&#x7B80;&#x5355;,&#x53EF;&#x4EE5; <code>git merge</code> &#x554A;!</p>
</blockquote>
<h4 id="&#x8FDC;&#x7A0B;&#x4ED3;&#x5E93;&#x66F4;&#x65B0;&#x5230;&#x672C;&#x5730;&#x5206;&#x652F;--git-pull"><a name="&#x8FDC;&#x7A0B;&#x4ED3;&#x5E93;&#x66F4;&#x65B0;&#x5230;&#x672C;&#x5730;&#x5206;&#x652F;--git-pull" class="anchor-navigation-ex-anchor" href="#&#x8FDC;&#x7A0B;&#x4ED3;&#x5E93;&#x66F4;&#x65B0;&#x5230;&#x672C;&#x5730;&#x5206;&#x652F;--git-pull"><i class="fa fa-link" aria-hidden="true"></i></a><strong>&#x8FDC;&#x7A0B;&#x4ED3;&#x5E93;&#x66F4;&#x65B0;&#x5230;&#x672C;&#x5730;&#x5206;&#x652F;</strong> : <code>git pull</code></h4>
<p>&#x5176;&#x5B9E;&#x901A;&#x8FC7; <code>git fetch</code> &#x547D;&#x4EE4;&#x6211;&#x4EEC;&#x5DF2;&#x7ECF;&#x4E0B;&#x8F7D;&#x4E86;&#x8FDC;&#x7A0B;&#x4ED3;&#x5E93;&#x7684;&#x6700;&#x65B0;&#x7248;&#x672C;,&#x53EA;&#x4E0D;&#x8FC7;&#x8FD8;&#x6CA1;&#x6709;&#x5408;&#x5E76;&#x5230;&#x672C;&#x5730;&#x4ED3;&#x5E93;&#x800C;&#x5DF2;,&#x5982;&#x4F55;&#x5408;&#x5E76;&#x5206;&#x652F;&#x76F8;&#x4FE1;&#x5927;&#x5BB6;&#x5DF2;&#x7ECF;&#x8F7B;&#x8F66;&#x719F;&#x8DEF;&#x4E86;,&#x6709;&#x5F88;&#x591A;&#x65B9;&#x6CD5;:</p>
<ul>
<li><code>git merge origin/master</code></li>
<li><code>git rebase origin/master</code></li>
<li><code>git cherry-pick origin/master</code></li>
</ul>
<p>&#x5B9E;&#x9645;&#x4E0A;,&#x5148;&#x6293;&#x53D6;&#x66F4;&#x65B0;(<code>git fetch</code>)&#x518D;&#x5408;&#x5E76;(<code>git merge</code>)&#x8FD9;&#x4E2A;&#x6D41;&#x7A0B;&#x5F88;&#x5E38;&#x7528;,&#x56E0;&#x6B64; <code>git</code> &#x662F;&#x6709;&#x4E13;&#x95E8;&#x7684;&#x547D;&#x4EE4;&#x6765;&#x5B8C;&#x6210;&#x8FD9;&#x4E24;&#x6B65;&#x64CD;&#x4F5C;&#x7684;,&#x8FD9;&#x5C31;&#x662F;&#x62C9;&#x53D6;&#x66F4;&#x65B0;<strong><code>git pull</code></strong> --- &#x521A;&#x597D;&#x4E0E;&#x63A8;&#x9001;&#x66F4;&#x65B0; <code>git push</code> &#x76F8;&#x53CD;!</p>
<pre><code># &#x62C9;&#x53D6;&#x6700;&#x65B0;&#x7248;&#x672C;
$ git pull
Updating dcce09c..10942ff
Fast-forward
 git-remote.txt | 1 +
 1 file changed, 1 insertion(+)
 create mode 100644 git-remote.txt

# &#x67E5;&#x770B;&#x7248;&#x672C;&#x5E93;&#x72B6;&#x6001;
$ git status
On branch master
Your branch is up to date with &apos;origin/master&apos;.

nothing to commit, working tree clean

# &#x67E5;&#x770B;&#x5DE5;&#x4F5C;&#x533A;&#x5185;&#x5BB9;: &#x6587;&#x4EF6;&#x5DF2;&#x66F4;&#x65B0;
$ ls
LICENSE     README.md   git-remote.txt  test.txt
$
</code></pre><p><img src="../images/git-branch-remote-pull.gif" alt="git-branch-remote-pull.gif"></p>
<h2 id="&#x56E2;&#x961F;&#x534F;&#x4F5C;"><a name="&#x56E2;&#x961F;&#x534F;&#x4F5C;" class="anchor-navigation-ex-anchor" href="#&#x56E2;&#x961F;&#x534F;&#x4F5C;"><i class="fa fa-link" aria-hidden="true"></i></a>1.2. &#x56E2;&#x961F;&#x534F;&#x4F5C;</h2>
<p>&#x638C;&#x63E1;&#x4E86;&#x8FDC;&#x7A0B;&#x4ED3;&#x5E93;&#x548C;&#x8FDC;&#x7A0B;&#x5206;&#x652F;&#x7684;&#x76F8;&#x5173;&#x6982;&#x5FF5;&#x540E;,&#x73B0;&#x5728;&#x5F00;&#x59CB;&#x771F;&#x6B63;&#x6A21;&#x62DF;&#x56E2;&#x961F;&#x534F;&#x4F5C;&#x5F00;&#x53D1;&#x4E86;,&#x4E3A;&#x4E86;&#x7B80;&#x5355;&#x8D77;&#x89C1;,&#x4ECD;&#x7136;&#x4EE5;&#x76F4;&#x63A5;&#x64CD;&#x4F5C; <code>github</code> &#x4E0A;&#x7684; <code>master</code> &#x5206;&#x652F;&#x4E3A;&#x4F8B;&#x8BF4;&#x660E;&#x5982;&#x4F55;&#x534F;&#x540C;&#x5F00;&#x53D1;.</p>
<p>(1). &#x5176;&#x4ED6;&#x4EBA;&#x5DF2;&#x5F80;&#x8FDC;&#x7A0B;&#x4ED3;&#x5E93;&#x63A8;&#x9001;2&#x4E2A;&#x7248;&#x672C;</p>
<p><img src="../images/git-branch-remote-teamworks.png" alt="git-branch-remote-teamworks.png"></p>
<p>(2). &#x4F60;&#x6B63;&#x5728;&#x672C;&#x5730;&#x4ED3;&#x5E93;&#x63D0;&#x4EA4;1&#x4E2A;&#x7248;&#x672C;</p>
<pre><code>$ echo &quot;learn teamwork&quot; &gt;&gt; test.txt
$ git commit -am &quot;learn teamwork&quot;
[master f971647] learn teamwork
 1 file changed, 1 insertion(+)
$
</code></pre><p><img src="../images/git-branch-remote-teamwork-local-commit.png" alt="git-branch-remote-teamwork-local-commit.png"></p>
<p>(3). &#x4F60;&#x63A8;&#x9001;&#x5230;&#x8FDC;&#x7A0B;&#x4ED3;&#x5E93;&#x524D;&#x5148;&#x62C9;&#x53D6;&#x6700;&#x65B0;&#x7248;&#x672C;</p>
<pre><code># &#x62C9;&#x53D6;&#x6700;&#x65B0;&#x7248;&#x672C;,&#x5E76;&#x5C1D;&#x8BD5;&#x5408;&#x5E76;
$ git pull
remote: Enumerating objects: 8, done.
remote: Counting objects: 100% (8/8), done.
remote: Compressing objects: 100% (5/5), done.
remote: Total 6 (delta 0), reused 0 (delta 0), pack-reused 0
Unpacking objects: 100% (6/6), done.
From github.com:xinwuyun/git-demo
   10942ff..612e08a  master     -&gt; origin/master
Merge made by the &apos;recursive&apos; strategy.
 git-remote.txt | 2 ++
 1 file changed, 2 insertions(+)

# &#x67E5;&#x770B;&#x7248;&#x672C;&#x5E93;&#x72B6;&#x6001;
$ git status
On branch master
Your branch is ahead of &apos;origin/master&apos; by 2 commits.
  (use &quot;git push&quot; to publish your local commits)

nothing to commit, working tree clean

# &#x67E5;&#x770B;&#x5176;&#x4ED6;&#x4EBA;&#x5DE5;&#x4F5C;&#x6210;&#x679C;
$ cat git-remote.txt
git remote
git clone
git commit -am &quot;fake second teamwork&quot;

# &#x67E5;&#x770B;&#x81EA;&#x5DF1;&#x5373;&#x5C06;&#x63A8;&#x9001;&#x7684;&#x5DE5;&#x4F5C;&#x6210;&#x679C;
$ cat test.txt
add test.txt
see https://xinwuyun.github.io/git/usage/remote-repository.html
learn git branch
see https://xinwuyun.github.io/git/usage/branch-overview.html
git commit c1
git commit c2 and c3
git checkout -b dev
fast forward not recommend
Happy coding
learn git stash
learn git rebase
learn teamwork
$
</code></pre><p><img src="../images/git-branch-remote-teamwork-pull.png" alt="git-branch-remote-teamwork-pull.png"></p>
<p>(4). &#x4F60;&#x5C06;&#x672C;&#x5730;&#x4ED3;&#x5E93;&#x66F4;&#x6539;&#x5185;&#x5BB9;&#x63A8;&#x9001;&#x5230;&#x8FDC;&#x7A0B;&#x4ED3;&#x5E93;</p>
<pre><code># &#x63A8;&#x9001;&#x5230;&#x8FDC;&#x7A0B;&#x4ED3;&#x5E93;
$ git push origin master
Counting objects: 5, done.
Delta compression using up to 4 threads.
Compressing objects: 100% (5/5), done.
Writing objects: 100% (5/5), 564 bytes | 564.00 KiB/s, done.
Total 5 (delta 3), reused 0 (delta 0)
remote: Resolving deltas: 100% (3/3), completed with 3 local objects.
To github.com:xinwuyun/git-demo.git
   612e08a..8fe5aba  master -&gt; master
$
</code></pre><p>&#x73B0;&#x5728;&#x524D;&#x5F80; <code>github</code> &#x7F51;&#x7AD9;&#x786E;&#x8BA4;&#x6211;&#x4EEC;&#x5DF2;&#x7ECF;&#x63A8;&#x9001;&#x6210;&#x529F;,&#x6211;&#x4EEC;&#x7684;&#x5DE5;&#x4F5C;&#x6210;&#x679C;&#x548C;&#x5176;&#x4ED6;&#x4EBA;&#x7684;&#x5DE5;&#x4F5C;&#x6210;&#x679C;&#x540C;&#x65F6;&#x5B58;&#x5728;&#x4E8E;&#x8FDC;&#x7A0B;&#x4ED3;&#x5E93;&#x4E2D;,&#x8FD9;&#x6837;&#x5C31;&#x5B8C;&#x6210;&#x4E86;&#x4E00;&#x6B21;&#x56E2;&#x961F;&#x534F;&#x540C;&#x5F00;&#x53D1;&#x7684;&#x6848;&#x4F8B;.</p>
<p><img src="../images/git-branch-remote-teamwork-myself.png" alt="git-branch-remote-teamwork-myself.png"></p>
<p><img src="../images/git-branch-remote-teamwork-push.png" alt="git-branch-remote-teamwork-push.png"></p>
<p>&#x73B0;&#x5728;&#x7B80;&#x5355;&#x56DE;&#x987E;&#x4E00;&#x4E0B;&#x6574;&#x4E2A;&#x534F;&#x540C;&#x5F00;&#x53D1;&#x6D41;&#x7A0B;:</p>
<ol>
<li>&#x5176;&#x4ED6;&#x4EBA;&#x5148;&#x4E8E;&#x6211;&#x4EEC;&#x63D0;&#x4EA4;2&#x4E2A;&#x7248;&#x672C;</li>
<li>&#x6211;&#x4EEC;&#x672C;&#x5730;&#x63D0;&#x4EA4;1&#x4E2A;&#x7248;&#x672C;</li>
<li>&#x672C;&#x5730;&#x7248;&#x672C;&#x63A8;&#x9001;&#x524D;&#x62C9;&#x53D6;&#x8FDC;&#x7A0B;&#x4ED3;&#x5E93;</li>
<li>&#x672C;&#x5730;&#x4ED3;&#x5E93;&#x63A8;&#x9001;&#x5230;&#x8FDC;&#x7A0B;&#x4ED3;&#x5E93;</li>
</ol>
<p><img src="../images/git-branch-remote-teamwork.gif" alt="git-branch-remote-teamwork.gif"></p>
<h2 id="&#x5C0F;&#x7ED3;"><a name="&#x5C0F;&#x7ED3;" class="anchor-navigation-ex-anchor" href="#&#x5C0F;&#x7ED3;"><i class="fa fa-link" aria-hidden="true"></i></a>1.3. &#x5C0F;&#x7ED3;</h2>
<ul>
<li>&#x67E5;&#x770B;&#x8FDC;&#x7A0B;&#x4ED3;&#x5E93;&#x4FE1;&#x606F;: <code>git remote -v</code></li>
<li>&#x672C;&#x5730;&#x4ED3;&#x5E93;&#x63A8;&#x9001;&#x5230;&#x8FDC;&#x7A0B;&#x4ED3;&#x5E93;: <code>git push origin &lt;branch&gt;</code></li>
<li>&#x8FDC;&#x7A0B;&#x4ED3;&#x5E93;&#x6293;&#x53D6;&#x5230;&#x672C;&#x5730;&#x4ED3;&#x5E93;: <code>git fetch</code></li>
<li>&#x8FDC;&#x7A0B;&#x4ED3;&#x5E93;&#x62C9;&#x53D6;&#x5230;&#x672C;&#x5730;&#x4ED3;&#x5E93;: <code>git pull</code> &#x76F8;&#x5F53;&#x4E8E; <code>git fetch</code> &#x548C; <code>git merge</code></li>
<li>&#x672C;&#x5730;&#x521B;&#x5EFA;&#x548C;&#x8FDC;&#x7A0B;&#x4ED3;&#x5E93;&#x4E00;&#x81F4;&#x7684;&#x5206;&#x652F;: <code>git checkout -b &lt;branch&gt; origin/&lt;branch&gt;</code>,&#x672C;&#x5730;&#x548C;&#x8FDC;&#x7A0B;&#x5206;&#x652F;&#x540D;&#x79F0;&#x6700;&#x597D;&#x4E00;&#x76F4;,&#x6BD4;&#x5982;&#x672C;&#x5730; <code>master</code> &#x548C; &#x8FDC;&#x7A0B; <code>origin/master</code>,&#x672C;&#x5730; <code>dev</code> &#x548C;&#x8FDC;&#x7A0B; <code>origin/dev</code></li>
<li>&#x672C;&#x5730;&#x5206;&#x652F;&#x548C;&#x8FDC;&#x7A0B;&#x5206;&#x652F;&#x5EFA;&#x7ACB;&#x5173;&#x8054;: <code>git branch --set-upstream &lt;branch&gt; origin/&lt;branch&gt;</code> ,&#x8DB3;&#x591F;&#x4EFB;&#x6027;&#x7684;&#x8BDD;,&#x672C;&#x5730; <code>dev</code> &#x53EF;&#x4EE5;&#x5173;&#x8054;&#x8FDC;&#x7A0B; <code>remote-dev</code> &#x7B49;,&#x4E0D;&#x8FC7;&#x5EFA;&#x8BAE;&#x540D;&#x79F0;&#x6700;&#x597D;&#x4E00;&#x81F4;.</li>
<li>&#x56E2;&#x961F;&#x534F;&#x540C;&#x5F00;&#x53D1;&#x65F6;,&#x4E0D;&#x4EC5;&#x5E73;&#x65F6;&#x8981;&#x5B9A;&#x671F;&#x62C9;&#x53D6;(<code>git pull</code>),&#x63A8;&#x9001;&#x5230;&#x8FDC;&#x7A0B;&#x4ED3;&#x5E93;&#x524D;&#x66F4;&#x5E94;&#x5148;&#x62C9;&#x53D6;(<code>git pull</code>)&#x518D;&#x63A8;&#x9001;(<code>git push</code>),&#x5982;&#x51FA;&#x73B0;&#x51B2;&#x7A81;,&#x89E3;&#x51B3;&#x51B2;&#x7A81;&#x540E;&#x518D;&#x63A8;&#x9001;.</li>
</ul>
<script type="text/javascript">var targetUl = document.getElementsByClassName('page-inner')[0].getElementsByTagName('ul')[0];if(targetUl.getElementsByTagName('a').length>0){targetUl.className='toc';}</script>

<pre><code class="lang-html">&#x4F5C;&#x8005;: &#x96EA;&#x4E4B;&#x68A6;
&#x94FE;&#x63A5;: https://xinwuyun.github.io/git/usage/branch-remote.html
&#x6765;&#x6E90;: &#x96EA;&#x4E4B;&#x68A6;
&#x672C;&#x6587;&#x539F;&#x521B;&#x53D1;&#x5E03;&#x4E8E;&#x300C;&#x96EA;&#x4E4B;&#x68A6;&#x300D;,&#x8F6C;&#x8F7D;&#x8BF7;&#x6CE8;&#x660E;&#x51FA;&#x5904;,&#x8C22;&#x8C22;&#x5408;&#x4F5C;!
</code></pre>
<p><img src="https://xinwuyun.github.io/xinwuyun-wechat-open.png" alt="https://xinwuyun.github.io/xinwuyun-wechat-open.png"></p>
<div id="gitalk-container"></div> 

<footer class="page-footer">
&#xA9; 2009-2021 xinwuyun.cn &#x7248;&#x6743;&#x6240;&#x6709; <a href="https://beian.miit.gov.cn/" target="_blank">&#x6D59;ICP&#x5907;18042346&#x53F7;</a>
</footer>
                                
                                </section>
                            
    </div>
    <div class="search-results">
        <div class="has-results">
            
            <h1 class="search-results-title"><span class='search-results-count'></span> results matching "<span class='search-query'></span>"</h1>
            <ul class="search-results-list"></ul>
            
        </div>
        <div class="no-results">
            
            <h1 class="search-results-title">No results matching "<span class='search-query'></span>"</h1>
            
        </div>
    </div>
</div>

                        </div>
                    </div>
                
            </div>

            
                
                <a href="branch-rebase.html" class="navigation navigation-prev " aria-label="Previous page: 变基合并">
                    <i class="fa fa-angle-left"></i>
                </a>
                
                
                <a href="local-remote-repository.html" class="navigation navigation-next " aria-label="Next page: 本地和远程仓库的本质">
                    <i class="fa fa-angle-right"></i>
                </a>
                
            
        
    </div>

    <script>
        var gitbook = gitbook || [];
        gitbook.push(function() {
            gitbook.page.hasChanged({"page":{"title":"协同开发","level":"2.2.2.9.6","depth":4,"next":{"title":"本地和远程仓库的本质","level":"2.2.2.9.7","depth":4,"path":"git/usage/local-remote-repository.md","ref":"git/usage/local-remote-repository.md","articles":[]},"previous":{"title":"变基合并","level":"2.2.2.9.5","depth":4,"path":"git/usage/branch-rebase.md","ref":"git/usage/branch-rebase.md","articles":[]},"dir":"ltr"},"config":{"plugins":["toc","-lunr","-search","search-plus","splitter","-sharing","sharing-plus","expandable-chapters-small","anchor-navigation-ex","edit-link-plus","code","chart","favicon-absolute","github-buttons","advanced-emoji","rss","sitemap-general","copyright","mygitalk","donate","icp","diff","simple-mind-map","hide-element","audio_image","mermaid-gb3","baidu-tongji-with-multiple-channel","google-tongji-with-multiple-channel"],"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"pluginsConfig":{"diff":{"type":"markdown","method":"diffChars","options":{}},"baidu-tongji-with-multiple-channel":{"url":"https://hm.baidu.com/hm.js","multipleChannelConfig":{"localhost":{"token":"5273b2f99de3bc190886abb53f62267e"},"xinwuyun.tech":{"token":"468a97b20b79bc025d27afbee73d2f39"},"blog.xinwuyun.cn":{"token":"606f5db455f771889dcfd16bb2bd313b"},"xinwuyun.github.io":{"token":"5273b2f99de3bc190886abb53f62267e"},"xinwuyun.gitee.io":{"token":"60ec676f32be4579eb53a430e153f677"},"xinwuyun.gitlab.io":{"token":"187a0e5601c4e4987cdb5b8df09c9b21"},"xinwuyun.gitbook.io":{"token":"6e2ee1b7bea146b2d6d9382bbf803083"}}},"splitter":{},"google-tongji-with-multiple-channel":{"multipleChannelConfig":{"localhost":{"token":"UA-140787039-2"},"xinwuyun.gitbook.io":{"token":"UA-140787039-1"},"xinwuyun.github.io":{"token":"UA-140787039-2"},"xinwuyun.gitee.io":{"token":"UA-140787039-3"},"xinwuyun.gitlab.io":{"token":"UA-140787039-4"},"xinwuyun.tech":{"token":"UA-140787039-5"},"blog.xinwuyun.cn":{"token":"UA-140787039-6"}},"url":"https://www.googletagmanager.com/gtag/js"},"copyright":{"copyProtect":false,"site":"https://xinwuyun.github.io/","author":"雪之梦","website":"雪之梦","image":"https://xinwuyun.github.io/xinwuyun-wechat-open.png"},"toc":{"addClass":true,"className":"toc"},"edit-link-plus":{"label":"编辑本页","base":{"xinwuyun.github.io":"https://github.com/xinwuyun/xinwuyun.github.io/edit/master","xinwuyun.gitlab.io":"https://gitlab.com/xinwuyun/xinwuyun.gitlab.io/edit/master","xinwuyun.gitee.io":"https://gitee.com/xinwuyun/xinwuyun/edit/master"},"defaultBase":"https://github.com/xinwuyun/xinwuyun.github.io/edit/master"},"sharing-plus":{"qq":false,"all":["facebook","google","twitter","instapaper","linkedin","pocket","stumbleupon"],"douban":false,"facebook":true,"weibo":false,"instapaper":false,"whatsapp":false,"hatenaBookmark":false,"twitter":true,"messenger":false,"line":false,"vk":false,"pocket":true,"google":false,"viber":false,"stumbleupon":false,"qzone":false,"linkedin":false},"code":{"copyButtons":true},"donate":{"title":"","button":"赏","wechat":"/wechat.jpg","alipay":"/alipay.jpg","wechatText":"微信","alipayText":"支付宝"},"favicon-absolute":{"favicon":"/favicon.ico","appleTouchIconPrecomposed152":"/apple-touch-icon-precomposed-152.png","appleTouchIconMore":{},"appleTouchIconPrecomposedMore":{}},"sitemap-general":{"prefix":"https://xinwuyun.github.io/"},"hide-element":{"elements":["a.gitbook-link[href='https://www.gitbook.com']"]},"fontsettings":{"theme":"white","family":"sans","size":2},"rss":{"categories":["markdown","git","github","gitbook","java","php"],"title":"雪之梦","description":"雪之梦静态网站,源码托管于 https://github.com/xinwuyun/xinwuyun.github.io","author":"xinwuyun","site_url":"https://xinwuyun.github.io/","feed_url":"https://xinwuyun.github.io/rss","managingEditor":"zrwangxdu@outlook.com","webMaster":"zrwangxdu@outlook.com"},"audio_image":{},"highlight":{},"mermaid-gb3":{},"anchor-navigation-ex":{"showLevel":true,"associatedWithSummary":true,"mode":"float","showGoTop":true,"printLog":false,"multipleH1":true,"float":{"floatIcon":"fa fa-navicon","showLevelIcon":false,"level1Icon":"","level2Icon":"","level3Icon":""},"pageTop":{"showLevelIcon":false,"level1Icon":"","level2Icon":"","level3Icon":""}},"icp":{"link":"https://beian.miit.gov.cn/","style":{},"label":"&copy 2009-2021 xinwuyun.cn 版权所有 ","number":"浙ICP备18042346号"},"github-buttons":{"buttons":[{"user":"xinwuyun","repo":"xinwuyun.github.io","type":"star","size":"small"}]},"expandable-chapters-small":{},"mygitalk":{"flipMoveOptions":{},"clientID":"3f62415a283d19cbd696","number":-1,"perPage":10,"proxy":"https://cors-anywhere.herokuapp.com/https://github.com/login/oauth/access_token","admin":["xinwuyun"],"createIssueManually":false,"distractionFreeMode":false,"repo":"xinwuyun.github.io","owner":"xinwuyun","enableHotKey":true,"clientSecret":"aed0e1db0620bf5d0e3a3f0225f801997ad74e58","pagerDirection":"last","labels":["Gitalk"]},"advanced-emoji":{"embedEmojis":false},"sharing":{"qq":true,"all":["facebook","google","twitter","weibo","instapaper","linkedin","pocket","stumbleupon"],"douban":true,"facebook":false,"weibo":true,"instapaper":false,"whatsapp":false,"hatenaBookmark":false,"twitter":false,"messenger":false,"line":false,"vk":false,"pocket":false,"google":false,"viber":false,"stumbleupon":false,"qzone":true,"linkedin":false},"simple-mind-map":{"type":"markdown","preset":"colorful","linkShape":"diagonal","autoFit":true,"style":{}},"theme-default":{"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"showLevel":false},"chart":{"type":"c3"},"search-plus":{}},"theme":"default","author":"xinwuyun","pdf":{"pageNumbers":true,"fontSize":12,"fontFamily":"Arial","paperSize":"a4","chapterMark":"pagebreak","pageBreaksBefore":"/","margin":{"right":62,"left":62,"top":56,"bottom":56}},"structure":{"langs":"LANGS.md","readme":"README.md","glossary":"GLOSSARY.md","summary":"SUMMARY.md"},"variables":{},"title":"雪之梦","language":"zh-hans","links":{"sidebar":{"技术博客":"https://blog.xinwuyun.cn/"}},"gitbook":"3.2.3","description":"雪之梦,xinwuyun 搭建的 Gitbook 个人博客,详情请访问 https://xinwuyun.github.io/"},"file":{"path":"git/usage/branch-remote.md","mtime":"2020-09-05T14:33:57.781Z","type":"markdown"},"gitbook":{"version":"3.2.3","time":"2022-02-02T12:37:44.450Z"},"basePath":"../..","book":{"language":""}});
        });
    </script>
</div>

        
    
    <script src="../../gitbook/gitbook.js"></script>
    <script src="../../gitbook/theme.js"></script>
    
        
        <script src="../../gitbook/gitbook-plugin-search-plus/jquery.mark.min.js"></script>
        
    
        
        <script src="../../gitbook/gitbook-plugin-search-plus/search.js"></script>
        
    
        
        <script src="../../gitbook/gitbook-plugin-splitter/splitter.js"></script>
        
    
        
        <script src="../../gitbook/gitbook-plugin-sharing-plus/buttons.js"></script>
        
    
        
        <script src="../../gitbook/gitbook-plugin-expandable-chapters-small/expandable-chapters-small.js"></script>
        
    
        
        <script src="../../gitbook/gitbook-plugin-edit-link-plus/plugin.js"></script>
        
    
        
        <script src="../../gitbook/gitbook-plugin-code/plugin.js"></script>
        
    
        
        <script src="../../gitbook/gitbook-plugin-github-buttons/plugin.js"></script>
        
    
        
        <script src="../../gitbook/gitbook-plugin-rss/plugin.js"></script>
        
    
        
        <script src="../../gitbook/gitbook-plugin-copyright/plugin.js"></script>
        
    
        
        <script src="https://cdn.bootcss.com/blueimp-md5/2.12.0/js/md5.min.js"></script>
        
    
        
        <script src="https://unpkg.com/gitalk/dist/gitalk.min.js"></script>
        
    
        
        <script src="../../gitbook/gitbook-plugin-mygitalk/mygitalk.js"></script>
        
    
        
        <script src="../../gitbook/gitbook-plugin-donate/plugin.js"></script>
        
    
        
        <script src="../../gitbook/gitbook-plugin-simple-mind-map/bundle.js"></script>
        
    
        
        <script src="../../gitbook/gitbook-plugin-hide-element/plugin.js"></script>
        
    
        
        <script src="../../gitbook/gitbook-plugin-mermaid-gb3/book/plugin.js"></script>
        
    
        
        <script src="../../gitbook/gitbook-plugin-baidu-tongji-with-multiple-channel/plugin.js"></script>
        
    
        
        <script src="../../gitbook/gitbook-plugin-google-tongji-with-multiple-channel/plugin.js"></script>
        
    
        
        <script src="../../gitbook/gitbook-plugin-fontsettings/fontsettings.js"></script>
        
    

    <script src="../../gitbook/gitbook-plugin-mermaid-gb3/mermaid/mermaid.min.js"></script>

    </body>
</html>

